package com.atguigu.yygh.apartment.service;

import com.atguigu.yygh.common.result.Result;
import com.atguigu.yygh.model.hosp.StudentInfo;
import com.atguigu.yygh.model.user.StudentDetail;
import com.atguigu.yygh.vo.hosp.StudentInfoQueryVo;
import com.atguigu.yygh.vo.user.UserInfoVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface StudentInfoService {
    void save(Map<String, Object> paramMap);

    void save(StudentInfo studentInfo);

    Result addStudent(String bedId, StudentDetail studentDetail);

    void deleteStudent(String bedId);

    void removeChamber(String bedId);

    void remove(String apartmentCode, String bedId);

    Page<StudentInfo> findPageStudentInfo(int page, int limit, StudentInfoQueryVo studentInfoQueryVo);

    //根据宿舍编号 、寝室编号查询寝室内学生信息
    List<StudentInfo> getDetailStudentInfo(String apartmentCode, String chamberCode);

    Result addStudentByStuCodeAndName(List<UserInfoVo> userInfoVos);
}
